import java.util.Random;

public class Question02 {
    public static void main(String[] args) {
        Random random =new Random();
        int[] arr=new int[20];
        for (int i = 0; i < arr.length; i++) {
            arr[i]=random.nextInt(10);
        }
        for (int i = 0; i < arr.length; i++) {
            if (arr[i]%2==0){
                System.out.println(arr[i]);
            }
        }
    }
}
